﻿@model VMC.Domain.Model.DataStructure.AddEditComplexDataTypeColumn

@VMCHelper.WideTextInput()

@*@using (Html.BeginForm()) { *@

@using (Html.BeginForm("AddBasicColumn", "DataTypes", FormMethod.Post, new { isajaxform ="false", returnfunction = "AddBasicColumn", id="AddBasicColumnForm"}))
{
    <input type="hidden" name="ID" id="ColumnID" value="@Model.ID" />
    <input type="hidden" name="BasicDataTypeID" id="BasicDataTypeID" value="@Model.BasicDataTypeID" />
    <input type="hidden" name="ColumnOrder" id="ColumnOrder" value="@Model.ColumnOrder" />
    <input type="hidden" name="ComplexDataTypeID" id="ComplexDataTypeID" value="@Model.ComplexDataTypeID" />
    <fieldset class="border">
        <!--<legend>AddEditComplexDataTypeColumn</legend>-->
		<table  class="input-form-table wide-table">
		<tr >
			<td  colspan="2"> @Html.ValidationSummary(true)</td>
		</tr>
        <tr >
		 <td class="editor-label" >
            @Html.LabelFor(model => model.Name) 
		</td>
        <td class="editor-field" >
            @Html.EditorFor(model => model.Name)
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.Name) </td>
		</tr>
        
        <tr >
        <td class="editor-field" colspan="2" style="text-align: right;">
            @Html.EditorFor(model => model.AutoGenerateVaribleName) Auto generate variable name?
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.AutoGenerateVaribleName) </td>
		</tr>
        
        <tr >
		 <td class="editor-label" >
            @Html.LabelFor(model => model.VariableName) 
		</td>
        <td class="editor-field" >
            @Html.EditorFor(model => model.VariableName)
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.VariableName) </td>
		</tr>
        
        <tr >
		 <td class="editor-label" >
            @Html.LabelFor(model => model.Comment) 
		</td>
        <td class="editor-field" >
            @Html.EditorFor(model => model.Comment)
		</td>
		</tr>
		<tr  class="validation-error">
            <td  colspan="2" > @Html.ValidationMessageFor(model => model.Comment) </td>
		</tr>
        
        <tr  class="submit-button">
            <td  colspan="2">  <input type="submit" value="Save" /> </td>
		</tr>
        
	</table>
    </fieldset>
}
